/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.hk.shop.entity.sys;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.thinkgem.jeesite.common.persistence.DataEntity;
import com.thinkgem.jeesite.modules.hk.shop.entity.shop.HkShopCoupon;
import org.hibernate.validator.constraints.Length;

import java.util.Date;

/**
 * 乐购推荐爆款优惠券Entity
 * @author 李欣荣
 * @version 2018-09-29
 */
public class HkShopRecBurst extends DataEntity<HkShopRecBurst> {
	
	private static final long serialVersionUID = 1L;
	private HkShopCoupon coupon;		// 优惠券id
	private String productId;		// 商品id
	private String discount;		// 折扣
	private Date beginTime;		// begin_time
	private Date endTime;		// end_time
	private String rank;		// 序号
	
	public HkShopRecBurst() {
		super();
	}

	public HkShopRecBurst(String id){
		super(id);
	}

	public HkShopCoupon getCoupon() {
		return coupon;
	}

	public void setCoupon(HkShopCoupon coupon) {
		this.coupon = coupon;
	}
	
	@Length(min=0, max=32, message="商品id长度必须介于 0 和 32 之间")
	public String getProductId() {
		return productId;
	}

	public void setProductId(String productId) {
		this.productId = productId;
	}
	
	public String getDiscount() {
		return discount;
	}

	public void setDiscount(String discount) {
		this.discount = discount;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getBeginTime() {
		return beginTime;
	}

	public void setBeginTime(Date beginTime) {
		this.beginTime = beginTime;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}
	
	@Length(min=0, max=11, message="序号长度必须介于 0 和 11 之间")
	public String getRank() {
		return rank;
	}

	public void setRank(String rank) {
		this.rank = rank;
	}
	
}